﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;


namespace 课上实例
{
    class Program
    {
        static void Main(string[] args)
        {
            List<string> name = new List<string>();
            name.Add("Michael Patten");
            name.Add("Simon Pearson");
            name.Add("David Pelton");
            name.Add("Thomas Andersen");
            foreach (string str in name)
            {
                Console.WriteLine(str);
            }
            name.Remove("David Pelton");
            Console.WriteLine();
            foreach(string str in name)
            {
                Console.WriteLine(str);
            }
            Console.ReadKey();
        }
    }
}
